package com.seari.custody.service;

import com.seari.custody.bean.User;
import com.seari.custody.bean.UserDTO;
import com.seari.custody.bean.UserPersonalCenter;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface UserService {

    public void save(User user) throws Exception;

    List<User> getUserFoByToken(User id);

    User getInfo(String token);

    public Map<String, User> getUser();

    public Integer addUser(User add);

    public int updateUser(Map<String, Object> params);

    int deleteUser(String id);

    List<UserDTO> getAllUsers();

    List<UserDTO> qryUserByName(String userName);

    User qryUserById(String username) throws Exception;

    User qryUserByNumber(String number);

    String qryNameByUserNumber(String number);

    void updatePersonalCenter(String usernumber,String username,String phone,String email,String password1) throws Exception;

    void updatePersonalCenter(MultipartFile file,String usernumber,String username,String phone,String email,String password1) throws Exception;

    UserPersonalCenter personalById(String username) throws Exception;

    String headportraitImg(String username);
}
